//
//  CYHomeVideoLabelTableViewCell.m
//  cyydt
//
//  Created by chu on 2019/1/17.
//  Copyright © 2019 chu. All rights reserved.
//

#import "CYHomeVideoLabelTableViewCell.h"

#import "CYHomeVideo_JingXuanShiPinViewController.h"
#import "CYHomeVideo_MiaoDongShiPinViewController.h"

@implementation CYHomeVideoLabelTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(leftAction:)];
    [self.leftImageView addGestureRecognizer:tap];
    self.leftImageView.userInteractionEnabled = YES;
    
    UITapGestureRecognizer *tap1 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(rightAction:)];
    [self.rightImageView addGestureRecognizer:tap1];
    self.rightImageView.userInteractionEnabled = YES;
}

- (void)leftAction:(UITapGestureRecognizer *)tap{
    CYHomeVideo_JingXuanShiPinViewController *jingxuan = [[CYHomeVideo_JingXuanShiPinViewController alloc] init];
    [[AppDelegate sharedAppDelegate] pushViewController:jingxuan];
}
- (void)rightAction:(UITapGestureRecognizer *)tap{
    CYHomeVideo_MiaoDongShiPinViewController *jingxuan = [[CYHomeVideo_MiaoDongShiPinViewController alloc] init];
    [[AppDelegate sharedAppDelegate] pushViewController:jingxuan];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
